captureToPng

Captures the node's pixels as PNG bytes, for attaching to a failure or comparing with a reference outside a snapshot library.

Return

The PNG-encoded image.